<!--管理项目评定指标-->
<template>
  <div class="page">
    <div class="content-left">
      <div class="top-search">
        <div class="top-search-item">
          <el-button type="primary" size="mini">新建模型</el-button>
        </div>
        <div class="top-search-item">
          <el-button type="danger" size="mini">删除模型</el-button>
        </div>
        <div class="top-search-item">
          <el-button type="primary" size="mini">保存</el-button>
        </div>
      </div>
      <el-table
        :data="tableData"
        style="width: 100%"
      >
        <el-table-column
          label="名称"
        />
        <el-table-column
          label="备注"
        />
      </el-table>
    </div>
    <div class="content-right">
      <div class="top-search">
        <div class="top-search-item">
          <el-button type="primary" size="mini">同级新增</el-button>
        </div>
        <div class="top-search-item">
          <el-button type="primary" size="mini">下级新增</el-button>
        </div>
        <div class="top-search-item">
          <el-button type="danger" size="mini">删除</el-button>
        </div>
        <div class="top-search-item">
          <el-button type="primary" size="mini">上移</el-button>
        </div>
        <div class="top-search-item">
          <el-button type="primary" size="mini">下移</el-button>
        </div>
        <div class="top-search-item">
          <el-button type="primary" size="mini">升级</el-button>
        </div>
        <div class="top-search-item">
          <el-button type="primary" size="mini">降级</el-button>
        </div>
        <div class="top-search-item">
          <el-button type="primary" size="mini">全部展开</el-button>
        </div>
        <div class="top-search-item">
          <el-button type="primary" size="mini">全部折叠</el-button>
        </div>
      </div>
      <el-table
        :data="tableData"
        style="width: 100%"
        row-key="id"
        :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
      >
        <el-table-column
          label="风险编码"
        />
        <el-table-column
          label="风险类型"
        />
        <el-table-column
          label="可供选择"
        />
        <el-table-column
          label="权重"
        />
        <el-table-column
          label="备注"
        />
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: []
    }
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.page {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  flex-direction: row;

  .content-left {
    .top-search {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      flex-direction: row;
      margin-bottom: 1rem;

      .top-search-item {
        margin-right: .25rem;
      }
    }
    margin-top: 2rem;
    width: 20%;
  }
  .content-right {
    margin-top: 4.8rem;
    width: 78%;
    margin-left: 1rem;
    .top-search {
      display: flex;
      justify-content: flex-start;
      align-items: center;
      flex-direction: row;
      margin-bottom: 1rem;

      .top-search-item {
        margin-right: .25rem;
      }
    }
  }
}
</style>
